<%-- 
    Document   : index
    Created on : 8 mars 2013, 11:38:31
    Author     : alocubiche
--%>
<%@page import="java.io.PrintWriter"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<jsp:useBean id="message" class="java.lang.String" scope="session" />
<jsp:useBean id="panier" class="model.Panier" scope="session" />

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Lapins.com</title>
        <link rel="stylesheet" type="text/css" href="style.css" />
    </head>
    <body>
        <h1>Bienvenue sur Lapins.com !</h1>
        <hr />
         <form id="indexform" action="MainController" method="post">
             <input type="hidden" name="action" value="itemList" />
             <a href="#" onclick="document.forms[0].submit();return false;">Voir les articles</a> |
             <a href ='./addItem.jsp'>Ajouter des objets à vendre</a> |
             <% if (panier.getArticles().size() > 0) { %>
                <a href='./order.jsp'><%=new String(panier.numberArticle() + " articles dans le panier")%></a>
             <% } %>
         </form>
        <%=message%>
        
    </body>
</html>
